package com.shanghaiyimu.yimiyangche.activity;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.shanghaiyimu.yimiyangche.R;

public class SearchActivity extends AppCompatActivity {

    private ImageView imgBack;
    private TextView textView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_search);
        init();
    }

    private void init() {
        imgBack = (ImageView) findViewById(R.id.bar_img_back);
        textView = (TextView) findViewById(R.id.bar_text_search);
        imgBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        textView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(SearchActivity.this,GoodsListActivity.class);
                startActivity(intent);
            }
        });
    }
}
